<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css背景</title>
    <style>
        .demo{
    width: 100px;
    height: 100px;
    border: 1px solid black;
    margin: 50px auto 0;
    background: url('./imgs/location_bg.jpg') -96px -145px;
        }
    </style>
</head>
<body>
    <div class="demo"></div>
</body>
</html>